package com.atmilan.quartz.model.dto.guanjp;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

import lombok.Data;

/**
 * 管家婆商品sku映射
 * @author daigb
 * @date:  2022-12-15 10:54
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class GuanjpProductSkuResDTO {
    /**
     * 请求id
     */
    @JsonProperty(value = "requestid")
    private String requestid;
    
    /**
     * 状态
     */
    @JsonProperty(value = "iserror")
    private Boolean iserror;
    
    /**
     * result结果集
     */
    @JsonProperty(value = "response")
    private Response response;
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Response {
        
        @JsonProperty(value = "goodsstocks")
        private List<Goodsstock> goodsstocks;
        
    }
    
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class Goodsstock {
    	
        @JsonProperty(value = "ptypeid")
    	private String ptypeid;

        @JsonProperty(value = "skuid")
        private String skuid;

        @JsonProperty(value = "ktypeid")
        private String ktypeid;

        @JsonProperty(value = "qty")
        private Integer qty;

        @JsonProperty(value = "saleqty")
        private Integer saleqty;
    	
    }
    
}
